home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / comm / tfig312e.zip / EXTPROTO < prev    next >
Text File  |  1991-03-05  |  2KB  |  47 lines

  1.  
  2. Telix supports a very large number of protocols internally. It also allows
  3. users to define up to 4 external protocol implementations, for the utmost in
  4. flexibility.
  5.  
  6. External protocols are defined in the 'Protocol options' page of the
  7. <Config>uration Menu. When the user selects a transfer with an external
  8. protocol Telix will either run a specified DOS Batch file, or a script file.
  9.  
  10. Batch File Method
  11.  
  12. If a Batch file has been configured to be executed when the external protocol
  13. is selected, TELIX will run it and pass 3 parameters to it.
  14.  
  15. The first parameter is the baud rate. This is accessed within the DOS batch
  16. file as %1. 
  17.  
  18. The second parameter is the comm port number. This is accessed as %2. 
  19.  
  20. The third parameter is the reply the user gave when asked what file(s) to
  21. transfer. If this is a download and this protocol has been defined to not need
  22. a download name, this parameter will be blank. This parameter is referred to
  23. as %3 in the Batch file.
  24.  
  25.  
  26.  
  27.  
  28. It is the responsibility of the Batch file to call a driver program for the
  29. protocol, using the supplied information. For example, if Telix didn't have
  30. built-in Zmodem support, a batch file called ZMOD.BAT could be defined to
  31. perform Zmodem uploads using the DSZ program with the following commands.
  32.  
  33. DSZ port %2 speed %1 sz %3
  34.  
  35. This would tell DSZ what files to transfer, and also would specify the proper
  36. baud rate and comm port.
  37.  
  38.  
  39. Script File Method
  40.  
  41. Alternately, Telix can run a SALT script file when the user selects an
  42. external protocol. The user's reply to the question of what files to transfer
  43. is stored in the system variable '_ext_filespec'. The script file is free to
  44. implement the protocol in whatever way it wants to, such as calling an
  45. external driver program using the 'RUN' function, or by actually performing
  46. the transfer itself.
  47.